import { GlobalStore } from '@/stores';
import { PORT3 } from '@/api/config/servicePort';
const globalStore = GlobalStore();
const sysParams = globalStore.sysParamsGet;

/**
 * 获取图片地址，目前用于回填上传的文件
 * @param url
 * @returns
 */
export const useFileImg = (url: string) => {
	return url ? `${PORT3}file/download/${url}?watermark=${sysParams.watermark}&isWatermark=true` : '';
};
